home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / CHECKD.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  1KB  |  29 lines

  1. ECHO OFF
  2. : CHECKD allows checking of a specific disk datasets
  3. :   using check data stored in the same directory
  4. IF "%1"=="" goto Help
  5. IF %1==? goto Help
  6. ECHO Checking file %1 against compressed CHKfileC report file ))A.LOG
  7. CHKFILEC %1 ))TEMP.LOG
  8. IF ERRORLEVEL 4 GOTO BadFIL
  9. :  To also see addtions and deletions of files, remove the /C parameter.
  10. CFCOMPC ))A.LOG ))TEMP.LOG/P/C
  11. DEL ))TEMP.LOG
  12. GOTO End
  13. :Help
  14. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  15. ECHO ║ CheckD will check the file or files specified against check data        ║
  16. ECHO ║ recorded on ))A.LOG in the current directory and report changes.        ║
  17. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  18. ECHO ║ Syntax  CHECKD filename                                                 ║
  19. ECHO ║     filename is the file or files to be checked.                        ║
  20. ECHO ║              filename may include wildcard characters (? and *).        ║
  21. ECHO ║     a: specifies the drive which contains the CHECK diskette for the    ║
  22. ECHO ║        current drive.                                                   ║
  23. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  24. GOTO End
  25. :BadFil
  26. ECHO File name: %1 was not found in the current directory
  27. GOTO End
  28. :End
  29.